package storage


import (
	k8sclient "k8s_gui_client/k8s/client"
)

//StorageClass list
func GetStorageClasses() (map[string]interface{}, error) {

		return k8sclient.CurrentK8sApiClient.GetAPI("/apis/storage.k8s.io/v1/storageclasses")

	

}

func StorageClassURL( name string) string {
	return "/apis/storage.k8s.io/v1/storageclasses/" + name
}


func GetStorageClassYaml(name string) (string ,error){
    return k8sclient.CurrentK8sApiClient.GetAPIAsYaml(StorageClassURL(name))
}